<?php
/*

Version 0.1
SEMF - Web Desiging Framework for Sport Event Managment
Copyright (C) 2006, SEMF Developers

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

*/

header('Content-type: text/xml');
$doc = new DOMDocument('1.0');
$root = NULL;
$root = $doc->createElement('message');
$doc -> appendChild($root);
$dma= "Hi I'm the text that should be set in the xml directive";
$child_tag = $doc ->createElement('set');
$root ->appendChild($child_tag);
$text = $doc ->createTextNode($dma);
$child_tag ->appendChild($text);
$child_tag = $doc ->createElement('error');
$text = $doc ->createTextNode("NO errors");
$child_tag ->appendChild($text);
$root ->appendChild($child_tag);

echo $doc -> saveXML();
?>